/* Card Wrapper */
.image-card {
    overflow: visible;
    /* Make sure overflow isn't hiding the shadow */
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    /* Ensure the card has a visible background */
    position: relative;
    /* Ensure positioning for shadow visibility */
}

.image-card a {
    text-decoration: none;
}

.image-card a:hover {
    text-decoration: none;
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3); */
}

/* Hover effect for the card */
.image-card:hover {
    transform: translateY(-5px);
    /* Card slightly lifts on hover */
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    box-shadow: 13px 1rem 0.25rem rgba(0, 0, 0, 0.075) !important;

    /* Add drop shadow on hover */
}

/* Image Wrapper */
.card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 200px;
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
}

.card-image {
    width: 100%;
    height: 100%;
    /* height: auto; */
    object-fit: cover;
    transition: transform 0.4s ease;
    -webkit-user-drag: none;
}

.image-card:hover .card-image {
    transform: scale(1.1);
    /* Image zooms in on hover */
}

/* Overlay with Gradient */
.image-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0));
    /* Gradient from dark to transparent */
    color: white;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    /* Ensures the overlay is above other elements */
}

.image-card:hover .image-overlay {
    opacity: 1;
    /* Overlay becomes visible on hover */
}

/* Title and Text */
.image-overlay .card-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 5px;
}
.card-text-title {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.image-overlay .card-text {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    /* Slightly more opaque text for better visibility */
}
.card-text {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
